#include <iostream>
#include "calculator.h"

using namespace std;

int main()
{
    Calculator calculator;
    int a = 10;
    int b = 5;

    cout << "Addition: " << calculator.add(a, b) << endl;
    cout << "Subtraction: " << calculator.subtract(a, b) << endl;
    cout << "Multiplication: " << calculator.multiply(a, b) << endl;

    try
    {
        cout << "Division: " << calculator.divide(a, b) << endl;
    }
    catch (const char *msg)
    {
        cerr << msg << endl;
    }

    cout << "main end!" << endl;

    return 0;
}